package com.gxuwz.medical.web.servlet;

import java.io.IOException;

import javax.servlet.ServletException;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

/**
 * 退出登录验证
 * @author 沉羽墨玖
 *
 */
public class LogoutServlet extends BaseServlet{
	public void doGet(HttpServletRequest request,HttpServletResponse response)
			throws ServletException, IOException{
				this.doPost(request, response);
	}
	public void doPost(HttpServletRequest request, HttpServletResponse response)
			throws ServletException,IOException{

	     String path="login.jsp";
	     request.getSession().invalidate();
	     //跳转到登录页面
	     process(request, response, path);
		
	}

}
